Skip to content

feat: Merge butterflow into codemod #1535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 80 commits into from
Jun 12, 2025
Merged

feat: Merge butterflow into codemod #1535

merged 80 commits into from
Jun 12, 2025

Conversation

mohebifar
Copy link
Member

This PR merges the private butterflow into codemod repo.

mohebifar and others added 30 commits March 7, 2025 16:10
* refactor: change `commands` -> `run`, and only accept a single string

* feat: support step-level outputs

This will be read by the containing task to produce task outputs.

* feat: task-level outputs

* refactor: move to one global state
This must be done now that we update the state using the diffing method,
rather than just keeping a mutable reference to it.
- Replaced separate `run` and `uses` fields in the Step struct with a single `action` field of type StepAction.
- Updated workflow validation and execution logic to accommodate the new StepAction enum.
- Adjusted tests to reflect changes in step definitions and ensure compatibility with the new action structure.
Steps should only have one unit of work to keep things simple
**Problem:** When running a matrix task, child tasks are executed and
run as normal, but the master task also attempts to run and will produce
variable resolution errors (since it is not really meant to be run, just
to track its children).

**Solution:** Introduce a new `is_master` field to track whether a task
is a master task, and read it to determine whether or not the task
should be run
ID is only really needed to select step-level outputs (which we no
longer have). Description isn't a big deal, but names shouldn't be
complex enough that they warrant a separate, longer description than the
one `name` provides.
feat: Generate TypeScript types with ts-rs
Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
codemod ⬜️ Ignored (Inspect) Visit Preview Jun 12, 2025 6:27am

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ mohebifar
❌ ribru17
You have signed the CLA already but the status is still pending? Let us recheck it.

@mohebifar mohebifar changed the title Feat/butterflow feat: Merge butterflow into codemod Jun 12, 2025
Copy link

pkg-pr-new bot commented Jun 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/codemod@1535

commit: 9fac1cb

@mohebifar mohebifar merged commit 04ad083 into main Jun 12, 2025
14 of 15 checks passed
@mohebifar mohebifar deleted the feat/butterflow branch June 12, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants